package cn.wikiflyer.beikang.act.user;

import net.tsz.afinal.annotation.view.ViewInject;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import cn.wikiflyer.beikang.BaseActivity;
import cn.wikiflyer.beikang.R;
import cn.wikiflyer.beikang.bean.VipUserListBean.VipUserBean;

public class UserVipInfoAct extends BaseActivity {

	
	private VipUserBean intentBean;
	
	@ViewInject(id = R.id.vipinfo_name)
	private TextView tv_name;
	@ViewInject(id = R.id.vipinfo_num)
	private TextView tv_number;
	@ViewInject(id = R.id.vipinfo_level)
	private TextView tv_level;
	@ViewInject(id = R.id.vipinfo_score)
	private TextView tv_score;
	@ViewInject(id = R.id.vipinfo_vipinfo)
	private TextView tv_info;
	@ViewInject(id = R.id.vipinfo_phone)
	private TextView tv_phone;
	@ViewInject(id = R.id.vipitem_tip)
	private TextView tv_tip;
	
	@Override
	public void getIntentData(Bundle savedInstanceState) {
		super.getIntentData(savedInstanceState);
		intentBean = (VipUserBean) getIntent().getSerializableExtra("bean");
	}
	@Override
	public void loadXml() {
		setContentView(R.layout.bk_act_user_vipinfo);
	}
	@Override
	public void init() {
	}
	@Override
	public void setData() {
		tv_name.setText(""+intentBean.realname);
		tv_number.setText(""+intentBean.memberno);
		tv_level.setText(""+intentBean.level_title);
		tv_score.setText(""+intentBean.sales_cash);
		tv_info.setText("");
		tv_phone.setText(""+intentBean.mobile);
		if (!intentBean.upgrade.equals("false")) {
			tv_tip.setVisibility(View.VISIBLE);;
			tv_tip.setText(intentBean.upgrade);
		}else{
			tv_tip.setVisibility(View.INVISIBLE);;
		}
	}
}
